package com.xmut.mall.member.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmut.mall.member.entity.MemberCouponEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmut.mall.member.searchparam.UserCentCouponSearchParam;
import com.xmut.mall.member.vo.UserCenterPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;


@Mapper
public interface MemberCouponDao extends BaseMapper<MemberCouponEntity> {

    /**
     * 获取用户中心的优惠券分页数据
     * @param initPage
     * @param param
     * @param date
     * @return
     */
    IPage<MemberCouponEntity> gerUserCenterCouponPage(Page<Object> initPage,@Param("param") UserCentCouponSearchParam param,@Param("now") Date date);
}